﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    //2、生成0-5之间的随机小数，保留两位小数。
    class Program
    {
        static void Main(string[] args)
        {
            Random ran = new Random();
            for (int i = 0; i < 50; i++)
            {
            double a=ran.NextDouble()*5;
            Console.WriteLine(a.ToString("#0.00"));
            }
            Console.ReadKey();
        }
    }
}
